import hmac
import hashlib

def hmac_sha512(key, message):
    hmac_obj = hmac.new(key, message, hashlib.sha512)
    digest = hmac_obj.digest()
    return digest

# 示例使用
if __name__ == "__main__":
    a=[
  '/api/datalist/touzilist?isnewagg=true&keyno=6b242b475738f45a4dd180564d029aa9&pageindex=2{}',
  'iLAgiWL4Ligk4i46Lkgigk4Bgkvl8LBBl4NLl1illv6lN1vAv1AkKk64kAKLAWWr4iKNAWivLLLL1ALBlgvWlWlviLAgiWL4Ligk4i46Lkgigk4Bgkvl8LBBl4NLl1illv6lN1vAv1AkKk64kAKLAWWr4iKNAWivLLLL1ALBlgvWlWlv',
  '/api/datalist/touzilist?isnewagg=true&keyno=6b242b475738f45a4dd180564d029aa9&pageindex=2pathString{}869dce76c1f76edbbb9f44bba8933516'
]


    print(hmac_hex1)
    print(hmac_hex2)